package com.android.clinic.doctors.app.ui.main;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.Toolbar;
import android.view.View;

import com.android.clinic.doctors.app.R;
import com.android.clinic.doctors.app.base.BaseFragment;

/**
 * Created by cheng on 2018/6/11.
 */
public class NewsFragment extends BaseFragment {

    private Toolbar toolbar;

    @Override
    protected int getLayoutResId() {
        return R.layout.item_news_list;
    }

    @Override
    protected void initView(@Nullable Bundle savedInstanceState) {
        toolbar = findViewById(R.id.toolbar);
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        ((MainActivity)mActivity).mImmersionBar.setTitleBar(mActivity, toolbar);
    }

}
